import java.io.File;
import java.io.IOException;
import java.io.*;
import java.util.Random;

public class GenNumber{
        public static void main(String[] args)
        {
            for(int i=0; i<1000; i++)
            {
                try
                {
                    FileOutputStream file = new FileOutputStream("C:/test/" + i+".txt");
                    for (int j = 0; j <16; j++) {
                    file.write((int)(Math.random()*62+48));
                    }
                    file.close();
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
        }
    }
